<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="panel panel-default mt-20">
    <div class="panel-header" style="margin-left: 50px;"><button class="btn btn-info">添加新首页导航</button></div>
    <div class="panel-body">
        <form class="form-horizontal" action="{:url('edit')}" method="post">
            <input style="display: none" name="id" value="">
            <input style="display: none" name="uniacid" value="1">
            <div class="form-group">
                <label for="sort" class="col-sm-2 control-label">排序</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" id="sort" name="displayorder" placeholder="" >
                    <span class="help-block">数字越大，排名越靠前</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">新首页导航标题</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="navname" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="exampleInputFile">新首页导航图片</label>
                <div class="col-sm-8">
                    <input type="file" id="exampleInputFile" />
                    <img src="http://www.xgllsh.cn/addons/ewei_shopv2/static/images/default-pic.jpg" alt="..." class="img-rounded">
                    <span class="help-block">建议尺寸:640 * 350 , 请将所有幻灯片图片尺寸保持一致</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">新首页导航链接</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" placeholder="" name="url">
                </div>
                <div class="col-sm-2">
                    <a class="btn btn-default" href="#" role="button">选择链接</a>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">状态</label>
                <div class="col-sm-8">
                    <label class='radio-inline'>
                        <input type='radio' name='status' value="1" > 显示
                    </label>
                    <label class='radio-inline'>
                        <input type='radio' name='status' value="0" checked> 隐藏
                    </label>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <a class="btn btn-default" href="{:url('page')}" role="button">返回列表</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>